clear all

** Set working directory: please set your own
/*
cd "~/Dropbox/sanctions_replication/"
*/
** Open dataset
use data/survey_clean.dta, clear

** Run analyses
regr sanct_phis_vox_num pbeliefs_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store physical_social

regr sanct_verb_vox_num pbeliefs_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store verbal_social

regr sanct_insult_vox_num pbeliefs_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store insult_social

regr sanct_avoid_vox_num pbeliefs_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store avoid_social

regr sanct_deny_vox_num pbeliefs_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store deny_social

regr sanct_gossip_vox_num pbeliefs_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store gossip_social

* Make table
esttab physical_social verbal_social insult_social avoid_social deny_social gossip_social ///
using tables/table2.tex, tex nonumber keep (pbeliefs_vox_num _cons) ///
mtitles("Physical" "Verbal" "Insult"  "Gossip" "Deny help" "Avoid interact") ///
coeflabels(pbeliefs_vox_num "Beliefs about social appropriateness" _cons "Constant") se ///
replace 
